@(jogador: List[Jogador])

@import helper._
@import helper.twitterBootstrap._

@main("Perfil"){
	@if(flash.containsKey("sucesso")){
		<div class="alert alert-success">
			<a class="close" data-dismiss="alert">×</a>
			<b>@flash.get("sucesso")</b>
		</div>
	}
					
	<div>
		<table class="table table-striped">
			<caption>
				<h3>Perfil do Jogador</h3>
			</caption>
			
			<thead>
				<tr>
					<th>Login</th>
					<th>Nome</th>
					<th>Email</th>
					<th>Sexo</th>
					<th>Pontuacao total</th>
				</tr>
			</thead>
			
			<tbody>
			
				@for(j <- jogador){
				
				<tr>
					<td>@j.login</td>
					<td>@j.nome</td>
					<td>@j.email</td>
					<td>@j.sexo</td>
					<td>@j.pontuacao_total</td>
					<td>@helper.form(action = routes.Ctrl_Jogador.atualizar()){ <input
						type="hidden" value="@j.login" name="login"> <input
						type="hidden" value="@j.nome" name="nome"> <input
						type="hidden" value="@j.email" name="email"> <input
						type="hidden" value="@j.sexo" name="sexo"> <input
						type="hidden" value="@j.pontuacao_total" name="pontuacao_total">
						<button type="submit" class="btn btn-primary" value="editar">Editar</button>
						}
					</td>
				</tr>
				
				}
							
			</tbody>
			
		</table>
	</div>
}